<template>
	<div class="header">
		<div class="logo">
			<img src="@/assets/bai.png" width="200px" />
		</div>
		<div class="title">
			<h1>新冠疫情大数据展示</h1>
		</div>
		<div class="info">
			数据截至：{{ new Date(timde).toLocaleDateString()}}
		</div>
	</div>
</template>

<script>
export default{
	data(){
		return {
			timde:579537899000
		}
	},
	computed:{
		data(){
			return this.$store.state.time
		}
	},
	watch:{
		data(newData){
			this.timde = newData
		}
	}
}
</script>

<style lang="less" scoped="scoped">
	.header{
		display: flex;
		justify-content: space-around;
		h1{
			color: #fff;
		}
	}
</style>
